import javax.swing.JFrame;
import java.awt.*;


public class Tester {

	public static void main(String []args)
	{
		MainFrame j = new MainFrame();

		j.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
		j.getContentPane();

		j.pack();
		j.setVisible(true);
		
		/*  JFrame frame = new JFrame();
    frame.getContentPane().add(new MainClass());

    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setSize(200,200);
    frame.setVisible(true);
  } */

		int location = 0;
		while(true)
		{
			j.repaint();
			LoginGUI q = j.getLogin();
			//while ((location = q.getLoc()) == 0);


			//if (location !=0)
			

				j.changeScreen();
				j.repaint();
				j.reset();
			
		}




	}


}
